package com.gary.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pengrui
 * @date 2021/1/7 - 15:34
 */
@RestController
public class PaymentConsulController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/payment/consul")
    public String queryConsul() {
        return "consul server port with " + port + "O(∩_∩)O哈哈~";
    }
}
